import xFetch from './xFetch';

export async function login(login) {
  return xFetch('/user/login.do', login);
}

export async function logout() {
  return xFetch('/user/logout.do', {});
}

export async function menu(token) {
  return xFetch('/user/menu.do', token);
}

export async function checkToken() {
  return xFetch('/user/checkToken.do', {});
}
